#include "BaseObject.h"
#include "2d\CCSpriteBatchNode.h"
#include "2d\CCSpriteFrameCache.h"

BaseObject::BaseObject(b2World *_World)
{
	mWorld = _World;
}


BaseObject::~BaseObject()
{
}

void BaseObject::init(SpriteBatchNode* _Spritebatch, SpriteFrameCache* _Cache, Sprite *_Parent)
{

}

void BaseObject::update(float dt)
{

}

void BaseObject::draw()
{

}

void BaseObject::destroy()
{

}

void BaseObject::onCollisionWith(BaseObject *_Object)
{

}

void BaseObject::setActive(bool active)
{
	mBody->setActive(active);
}

void BaseObject::setPosition(b2Vec2 pos)
{
	mSprite->setPosition(pos.x, pos.y);
	mBody->setPosition(pos);
}

void BaseObject::setRotation(int rotation)
{
	mSprite->setRotation(rotation);
}
